Skip to content

[Github][libcxx] Run Container Build Workflow on Stacked PRs #150683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

boomanaiden154
Copy link
Contributor

Currently the container build workflow does not run on stacked PRs that do not have a branch target of main because of how the workflow is configured. This makes the workflow better confirm to the LLVM CI best practices around Github workflows:

https://llvm.org/docs/CIBestPractices.html#ensuring-workflows-run-on-the-correct-events

Currently the container build workflow does not run on stacked PRs that
do not have a branch target of main because of how the workflow is
configured. This makes the workflow better confirm to the LLVM CI best
practices around Github workflows:

https://llvm.org/docs/CIBestPractices.html#ensuring-workflows-run-on-the-correct-events
@llvmbot llvmbot added libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. github:workflow labels Jul 25, 2025
@llvmbot
Copy link
Member

llvmbot commented Jul 25, 2025

@llvm/pr-subscribers-libcxx

Author: Aiden Grossman (boomanaiden154)

Changes

Currently the container build workflow does not run on stacked PRs that do not have a branch target of main because of how the workflow is configured. This makes the workflow better confirm to the LLVM CI best practices around Github workflows:

https://llvm.org/docs/CIBestPractices.html#ensuring-workflows-run-on-the-correct-events


Full diff: https://github.com/llvm/llvm-project/pull/150683.diff

1 Files Affected:

  • (modified) .github/workflows/libcxx-build-containers.yml (-2)
diff --git a/.github/workflows/libcxx-build-containers.yml b/.github/workflows/libcxx-build-containers.yml
index 564a79341edb1..f432e3ddd5d1e 100644
--- a/.github/workflows/libcxx-build-containers.yml
+++ b/.github/workflows/libcxx-build-containers.yml
@@ -18,8 +18,6 @@ on:
       - 'libcxx/utils/ci/**'
       - '.github/workflows/libcxx-build-containers.yml'
   pull_request:
-    branches:
-      - main
     paths:
       - 'libcxx/utils/ci/**'
       - '.github/workflows/libcxx-build-containers.yml'

@llvmbot
Copy link
Member

llvmbot commented Jul 25, 2025

@llvm/pr-subscribers-github-workflow

Author: Aiden Grossman (boomanaiden154)

Changes

Currently the container build workflow does not run on stacked PRs that do not have a branch target of main because of how the workflow is configured. This makes the workflow better confirm to the LLVM CI best practices around Github workflows:

https://llvm.org/docs/CIBestPractices.html#ensuring-workflows-run-on-the-correct-events


Full diff: https://github.com/llvm/llvm-project/pull/150683.diff

1 Files Affected:

  • (modified) .github/workflows/libcxx-build-containers.yml (-2)
diff --git a/.github/workflows/libcxx-build-containers.yml b/.github/workflows/libcxx-build-containers.yml
index 564a79341edb1..f432e3ddd5d1e 100644
--- a/.github/workflows/libcxx-build-containers.yml
+++ b/.github/workflows/libcxx-build-containers.yml
@@ -18,8 +18,6 @@ on:
       - 'libcxx/utils/ci/**'
       - '.github/workflows/libcxx-build-containers.yml'
   pull_request:
-    branches:
-      - main
     paths:
       - 'libcxx/utils/ci/**'
       - '.github/workflows/libcxx-build-containers.yml'

@boomanaiden154
Copy link
Contributor Author

(Merging despite the libc++ docker image workflow failing as it is broken for unrelated reasons).

@boomanaiden154 boomanaiden154 merged commit fd65b20 into llvm:main Jul 25, 2025
12 of 13 checks passed
@boomanaiden154 boomanaiden154 deleted the libcxx-container-workflow-stacked-prs branch July 25, 2025 19:47
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
…0683)

Currently the container build workflow does not run on stacked PRs that
do not have a branch target of main because of how the workflow is
configured. This makes the workflow better confirm to the LLVM CI best
practices around Github workflows:


https://llvm.org/docs/CIBestPractices.html#ensuring-workflows-run-on-the-correct-events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github:workflow libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants